package com.nit.lab.dao;

import com.nit.lab.dto.DtoMenu;
import com.nit.lab.dto.DtoUser;
import com.nit.lab.model.SysUserEntity;

import java.util.List;

/**
 * @author Shaury
 * @date 2017/10/9
 */
public interface UserDao {

    List<SysUserEntity> getUser4DataTable(Integer start, Integer length, String search) throws Exception;

    Integer getUser4DataTableCount(String search) throws Exception;

    Integer insertUserInfo(SysUserEntity sysUserEntity) throws Exception;

    Integer updateUserInfo(SysUserEntity sysUserEntity) throws Exception;

    String deleteUserInfo(Integer userId) throws Exception;

    boolean isUserHasContent(Integer userId) throws Exception;

    /**
     * @Description: 获取菜单ID
     * @Author: 卫超越
     * @Date: 2017/12/25 上午9:50
     * @return:
     */
    String getMenuId(Integer actorId) throws Exception;

    /**
     * @Description: 根据用户角色获取菜单
     * @Author: 卫超越
     * @Date: 2017/12/25 上午9:41
     * @return:
     */
    DtoMenu getMenus(Integer actorId) throws Exception;

}
